-- =========================================
-- Author: Jacob Gable
-- Created: 02.00.2009
-- Notes: Creation of ForumPost table.
-- 
-- 
-- =========================================

IF OBJECT_ID('dbo.ForumPost', 'U') IS NOT NULL
  DROP TABLE dbo.ForumPost
GO

CREATE TABLE dbo.ForumPost
(
	PostId int identity(1,1) NOT NULL, 
	Author uniqueidentifier foreign key references aspnet_users(UserId) NOT NULL, 
	CreatedDate datetime NOT NULL, 
	Title nvarchar(200) NOT NULL,
	Contents nvarchar(max) NOT NULL,
	IsActive bit NOT NULL,
	ts timestamp NULL,
    CONSTRAINT PK_ForumPost PRIMARY KEY (PostId)
)
GO
